-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DIG-1514: An invalid chart in CustomOfflineCharts.js causes the searchpage to whitescreen. #202
Conversation
…ype in localstorage would cause a whitescreen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am encountering several errors with the data visualization component:
- Changing chartType in local storage:
- I tried setting one to
bars
instead ofbar
this resulted in highcharts error number 17missingModuleFor=bars
- Tried changing the data to a non-existent option and got an infinite loading time
- Changing dropdowns
- Changing the dropdown of the data or chartType resulted in an error as well.
Most of these resolve after page refresh.
Should be fixed now, though after staring at my code I have no idea how it ever worked in the first place. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you remove a chart, it only removes the last chart added instead of the specific one. Code now works correctly when using the dropdowns. Additionally, it works if I change the localStorage chartType to an invalid option. However, if you set it to an invalid data option, the chart enters an infinite loading state. We might want to prevent this from displaying as well. Also two linter warnings are shown
@CourtneyGosselin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Ticket(s)
Description
dataVisualization.js
component, as it was a bit unwieldy to work with.Expected Behaviour
Types of Change(s)
Has it been tested for: